package com.phz.springcloud.study.service;

import com.phz.springcloud.study.entity.User;
import org.springframework.context.ApplicationEvent;
/**
 * 定义事件
 * @author penghaozhong
 *
 */
public class UserEvent extends ApplicationEvent{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private  User user;

	public UserEvent(Object source, User user) {
		super(source);
		this.user = user;
	}

	public User getUser() {
		return user;
	}
}
